/* 职位详情页面专有样式 */

/* 职位详情头部 */
.job-header {
    background-color: var(--white-color);
    padding: 20px 15px;
    border-radius: 0 0 20px 20px;
}

.job-title-container {
    margin-bottom: 10px;
}

.job-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.job-title .verified {
    color: var(--primary-color);
    margin-left: 5px;
    font-size: 16px;
}

.job-info {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.job-salary {
    font-size: 18px;
    font-weight: bold;
    color: var(--danger-color);
    margin-right: 15px;
    margin-bottom: 5px;
}

.job-location, .job-education, .job-experience {
    font-size: 14px;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 5px;
}

.job-location i, .job-education i, .job-experience i {
    margin-right: 5px;
    font-size: 16px;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.job-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(63, 81, 181, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 12px;
    margin-right: 10px;
    margin-bottom: 8px;
}

.company-info {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--light-gray);
}

.company-logo {
    width: 45px;
    height: 45px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 12px;
}

.company-details {
    flex: 1;
}

.company-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 3px;
}

.company-type {
    font-size: 12px;
    color: var(--gray-color);
}

.company-follow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(63, 81, 181, 0.1);
    color: var(--primary-color);
    font-size: 16px;
}

/* 申请信息 */
.application-info {
    background-color: var(--white-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.applicants-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.applicants-count {
    font-size: 14px;
    color: var(--gray-color);
}

.success-rate {
    font-size: 14px;
    color: var(--success-color);
}

.applicants-avatars {
    display: flex;
    align-items: center;
}

.applicant-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--white-color);
    margin-right: -10px;
    object-fit: cover;
}

.more-applicants {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--gray-color);
}

/* 职位描述 */
.job-description {
    background-color: var(--white-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 15px;
}

.description-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

.description-content p {
    margin-bottom: 10px;
}

.description-content ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.description-content li {
    margin-bottom: 5px;
}

/* 职位要求 */
.job-requirements {
    background-color: var(--white-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 15px;
}

/* 公司信息 */
.company-details-section {
    background-color: var(--white-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 15px;
}

.company-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
}

.company-stats {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.company-stat {
    width: 50%;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stat-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(63, 81, 181, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.stat-icon i {
    font-size: 18px;
    color: var(--primary-color);
}

.stat-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 12px;
    color: var(--gray-color);
}

.company-location {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.company-location img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-address {
    font-size: 14px;
    color: var(--gray-color);
}

/* 底部固定操作栏 */
.job-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    padding: 10px 15px;
    padding-bottom: calc(10px + var(--iphone-safe-area-bottom));
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.05);
}

.action-left {
    display: flex;
    align-items: center;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
}

.action-btn i {
    font-size: 20px;
    color: var(--gray-color);
    margin-bottom: 3px;
}

.action-btn span {
    font-size: 12px;
    color: var(--gray-color);
}

.action-btn.active i,
.action-btn.active span {
    color: var(--primary-color);
}

.action-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.apply-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
}

/* 为iPhone 15进行适配 */
@media screen and (width: 390px) and (height: 844px) {
    .job-header {
        padding-top: calc(20px + var(--iphone-safe-area-top));
    }
    
    .job-title {
        font-size: 17px;
    }
    
    .job-salary {
        font-size: 17px;
    }
    
    .job-location, .job-education, .job-experience {
        font-size: 13px;
    }
    
    .job-location i, .job-education i, .job-experience i {
        font-size: 15px;
    }
    
    .job-tag {
        padding: 3px 8px;
        margin-right: 8px;
        margin-bottom: 6px;
    }
    
    .company-logo {
        width: 42px;
        height: 42px;
    }
    
    .company-name {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 15px;
    }
    
    .description-content {
        font-size: 13px;
    }
    
    .applicant-avatar {
        width: 32px;
        height: 32px;
    }
    
    .more-applicants {
        width: 32px;
        height: 32px;
    }
    
    .stat-icon {
        width: 32px;
        height: 32px;
    }
    
    .stat-icon i {
        font-size: 16px;
    }
    
    .company-location {
        height: 140px;
    }
    
    .apply-btn {
        padding: 9px 22px;
        font-size: 14px;
    }
}

/* 小屏幕设备适配 */
@media (max-width: 320px) {
    .job-title {
        font-size: 16px;
    }
    
    .job-salary {
        font-size: 16px;
    }
    
    .job-location, .job-education, .job-experience {
        font-size: 12px;
        margin-right: 10px;
    }
    
    .section-title {
        font-size: 15px;
    }
    
    .description-content {
        font-size: 13px;
    }
    
    .applicant-avatar {
        width: 30px;
        height: 30px;
    }
    
    .more-applicants {
        width: 30px;
        height: 30px;
    }
    
    .apply-btn {
        padding: 8px 18px;
    }
}

/* 暗黑模式支持 */
@media (prefers-color-scheme: dark) {
    .job-tag {
        background-color: rgba(63, 81, 181, 0.2);
    }
    
    .company-follow {
        background-color: rgba(63, 81, 181, 0.2);
    }
    
    .stat-icon {
        background-color: rgba(63, 81, 181, 0.2);
    }
    
    .more-applicants {
        background-color: var(--dark-light);
    }
} 